package com.biz.primus.ms.member.trans;

import com.biz.primus.model.member.vo.MemberBankCardVo;
import com.biz.primus.ms.member.dao.po.MemberBankCard;
import com.google.common.base.Function;
import org.springframework.beans.BeanUtils;

/**
 * 银行卡vo转po
 * @author jun.liu
 * @date 2017年10月23日
 * @reviewer
 * @see
 */
public class MemberBankCardVoToMemberBankCard implements Function<MemberBankCardVo, MemberBankCard> {
    @Override
    public MemberBankCard apply(MemberBankCardVo vo) {
        MemberBankCard po = new MemberBankCard();
        if (vo != null) {
            BeanUtils.copyProperties(vo, po);
        }
        return po;
    }
}
